package com.tnr.scgcxx.service.process.impl;

import com.tnr.scgcxx.dao.process.PretreatmentDao;
import com.tnr.scgcxx.model.bus.Process;
import com.tnr.scgcxx.service.process.PretreatmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PretreatmentServiceImpl implements PretreatmentService {
    @Autowired
    private PretreatmentDao pretreatmentDao;

    @Override
    public List<Process> findPretreatments(String process_status) {
        return pretreatmentDao.findPretreatments(process_status);
    }

    @Override
    public int updatePretreatment(Process process) {
        return pretreatmentDao.updatePretreatment(process);
    }
}
